home *** CD-ROM | disk | FTP | other *** search
-
- Fergus Duniho's excellent AlphaSpell supports Textra, and is
- definitely a welcome accessory. This well-done application
- provides convenient spell-checking to Textra with the touch
- of a key!
-
- Unfortunately, Fergus' Textra script has a problem, but
- both the fix and directions for applying it are below.
-
- FYI, I used AlphaSpell 6.2 for determining the below info.
- No idea if this applies to other versions. I suggest
- you direct AlphaSpell-related questions to Fergus.
-
- How to apply the fix...
-
- 1. Open up the "ASpell.textra" script.
-
- 2. Locate the "Findword" procedure. It should look like this:
-
- FindWord: PROCEDURE
- read target
- wrd = RESULT /* Reads selected word */
- ADDRESS
- IF arg(1) = 0 THEN GOTOXY 0 0
- DO FOREVER
- FIND wrd
- IF RESULT = "NOT FOUND" THEN DO
- GOTOXY 0 0
- LEAVE
- END
- GET cursor position
- PARSE VAR RESULT col row
- GET line row
- IF WordComp(RESULT, wrd, col) = 1 THEN LEAVE
- END
-
- 3. Change these two lines...
-
- GET cursor position
- PARSE VAR RESULT col row
-
- ...to...
-
- GET select position
- PARSE VAR RESULT col' 'row' 'xxx' 'yyy
-
- 4. Here's the new "Findword" in its entirety...
-
- FindWord: PROCEDURE
- read target
- wrd = RESULT /* Reads selected word */
- ADDRESS
- IF arg(1) = 0 THEN GOTOXY 0 0
- DO FOREVER
- FIND wrd
- IF RESULT = "NOT FOUND" THEN DO
- GOTOXY 0 0
- LEAVE
- END
- GET select position
- PARSE VAR RESULT col' 'row' 'xxx' 'yyy
- GET line row
- IF WordComp(RESULT, wrd, col) = 1 THEN LEAVE
- END
-
- That's all, folks!
-
- Mike Haas
-
-